//    Copyright (C) Kherty.  All rights reserved.
namespace OpenLS.Spreadsheet
{
    class DataBarInformation
    {
        public DataBarInformation(double value, SpreadsheetColor color, int minLength, int maxLength)
        {
            Value = value;
            Color = color;
            MinLength = minLength;
            MaxLength = maxLength;
        }

        public double Value { get; private set; }
        public SpreadsheetColor Color { get; private set; }
        public int MinLength { get; private set; }
        public int MaxLength { get; private set; }

        public double DeltaRatio
        {
            get { return ((double) MaxLength - MinLength)/100.0; }
        }

        public double MinRatio
        {
            get { return ((double) MinLength)/100.0; }
        }
    }
}
